<template>
	<view class="content">
		<view class="frame-top">
			<view class="top-title flexal">
				<image src="/static/metting/voteIcon.png" style="width: 36rpx; height: 32rpx;"></image>
				<view style="margin-left: 18rpx;">投票主题名称1</view>
			</view>
			<view class="top-conent">
				投票描述文字内容文字内容文字内容文字内容内容内容内容内容内容内容内容内容内容内容内容。
			</view>
			<view class="top-status flexal">
				<view>匿名</view>
				<view style="color: #2BA471;margin-left: 20rpx;">进行中</view>
			</view>
		</view>
		
		<view class="frame-content">
			<view class="content-item" v-for="(item,index) in list" :key="index">
				<view style="font-weight: 400;font-size: 30rpx;color: #000000;">{{index+1}}   {{item.name}}</view>
				<u-radio-group v-model="item.value" @change="radioGroupChange" :wrap="true">
				<!-- <view  v-for="(items,indexs) in item.child" :key="indexs"> -->
					<u-radio style="margin-top: 20rpx;" @change="radioChange" v-for="(items,indexs) in item.child" :key="indexs" :name="items.name" > {{items.name}} </u-radio>
				<!-- </view> -->
				</u-radio-group>
			</view>
		</view>
		<view style="height: 149rpx;"></view>
		
		<view class="frame-buttom flexal">
			<view class="button flexcen">提交</view>
		</view>
		<!-- 电话提示滑动快 -->
		<movablearea1 :movaheight="movaheightAll" v-if="movableareaShow" @editMovaheightAll="editMovaheightAll" :movaTop="movaTopAll"></movablearea1>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[
					{
						name:'问题名称名称名称',
						child:[
							{
								name:'选项1',
								num:0,
								percent:0,
							},{
								name:'选项2',
								num:0,
								percent:0,
							},{
								name:'选项3',
								num:0,
								percent:0,
							}
						],
						value:'选项1'
					},{
						name:'问题名称名称名称',
						child:[
							{
								name:'选项1',
								num:0,
								percent:0,
							},{
								name:'选项2',
								num:0,
								percent:0,
							},{
								name:'选项3',
								num:0,
								percent:0,
							}
						],
						value:''
					},{
						name:'问题名称名称名称',
						child:[
							{
								name:'选项1',
								num:0,
								percent:0,
							},{
								name:'选项2',
								num:0,
								percent:0,
							},{
								name:'选项3',
								num:0,
								percent:0,
							},
						],
						value:''
					},
				]
			}
		},
		
		methods: {
			
			// 发起投票
			startVote(){
				this.empty = false
				uni.setNavigationBarTitle({
					title:'投票进行中'
				});
				this.start = !this.start
			},
			// 答题
			radioGroupChange(e){
				console.log('e',e,this.list)
			},
			// 单选题目
			radioChange(e){
				console.log('radio',e)
			}
		}
	}
</script>

<style lang="less">
	.content{
		background: #F2F1F6;
	}
	.frame-top{
		padding: 44rpx 32rpx;
		background: #fff;
	}
	.top-title{
		font-weight: 500;
		font-size: 30rpx;
		color: #000000;
	}
	.top-conent{
		margin-top: 34rpx;
		font-weight: 400;
		font-size: 26rpx;
		color: #000000;
	}
	.top-status{
		margin-top: 32rpx;
		font-weight: 400;
		font-size: 26rpx;
		color: #858A99;
	}
	.frame-content{
		background: #fff;
		margin-top: 16rpx;
		padding: 44rpx 32rpx;
		
		.content-item{
			margin-bottom: 50rpx;
		}
		
		.content-text{
			font-weight: 400;
			font-size: 26rpx;
			color: #333333;
		}
	}
	
	.frame-buttom{
		display: flex;
		position: fixed;
		bottom: 0rpx;
		width: 750rpx;
		height: 149rpx;
		background: #FFFFFF;
		box-shadow: 0rpx 8rpx 32rpx 1rpx rgba(9,4,114,0.1);
		border-radius: 0rpx 0rpx 0rpx 0rpx;
		.button{
			margin-left: 25rpx;
			width: 686rpx;
			height: 80rpx;
			background: #0052D9;
			border-radius: 24rpx 24rpx 24rpx 24rpx;
			font-weight: normal;
			font-size: 32rpx;
			color: #FFFFFF;
		}
	}
</style>
